package com.meng.domain;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 
 * @ClassName: Users
 * @Description:
 * @author 孟凡岭
 * @date 2015年8月24日 下午3:36:21
 */
@Document(collection = "users")
public class Users implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2066002415520748125L;
	@Id
	private String id;
	@Field
	private String name;
	@Field
	private String pwd;
	@Field
	private int age;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
